package cn.itcast.n5_共享模型_内存;

public class Test06_volatile习题_volatile不能实现balking模式 {
    volatile boolean initialized = false;

    void init() {
        if (initialized) {
            return;
        }
        doInit();
        initialized = true;
    }

    private void doInit() {
    }
}
